﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
                    xmlns:Detail="clr-namespace:Patterns4Net.ArchitectureExplorer.ViewModels.Detail">
    <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary>
            <DataTemplate DataType="{x:Type Detail:LayerDetailViewModel}" >
                <StackPanel Margin="0, 10, 0, 0">
                    <StackPanel Orientation="Horizontal">
                        <Image Source=".\..\..\Image\Layer.png" Width="16" Height="16" Margin="0, 0, 7, 0"/>
                        <TextBlock FontSize="15" Text="{Binding Name}"></TextBlock>
                    </StackPanel>

                    <Separator/>
                    <TextBlock Margin="10, 0, 0, 0">Packages:</TextBlock>
                    <ItemsControl ItemsSource="{Binding Packages}" Margin="25, 15, 0, 0">
                        <ItemsControl.ItemTemplate>
                            <DataTemplate>
                                <StackPanel Orientation="Horizontal">
                                    <Image Source=".\..\..\Image\Package.png" Width="16" Height="16" Margin="0, 0, 7, 0"/>
                                    <TextBlock FontSize="14" Text="{Binding .}"/>
                                </StackPanel>
                            </DataTemplate>
                        </ItemsControl.ItemTemplate>
                    </ItemsControl>

                    <Separator/>
                    <TextBlock TextWrapping="Wrap">
                        Layers correspond to assemblies, 
                        or they can be manually configured using 
                        assembly attribute Layer from Patterns4Net.
                    </TextBlock>
                </StackPanel>
            </DataTemplate>
        </ResourceDictionary>
    </ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
